<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:81:"/Users/yandian/work/matian/application/admin/view/bootstrap/onlineWrite/form.html";i:1491832598;}*/ ?>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>在线填写</h2>
        <ol class="breadcrumb">
            <li>
                <a href="#">首页</a>
            </li>
            <li>
                <a href="#<?php echo U('OnlineWrite/'); ?>">在线填写</a>
            </li>
            <li class="active">
                <strong><?php echo !empty($isEdit)?'修改':'添加'; ?>在线填写</strong>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div>
                        <button class="btn btn-link" type="button" onclick="history.back()">
                            <span class="fa fa-angle-left"></span>
                            返回
                        </button>
                    </div>
                    <form method="post" class="form-horizontal" id="form1">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">出租人类型</label>
                            <div class="col-sm-10">
                                <?php echo W('parts/op',['name'=>'lessor_type','value'=>$m['lessor_type'],'key'=>'lty']); ?>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">出租人姓名/单位名称</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lessor_name']; ?>" name="lessor_name" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">证件号</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lessor_identity']; ?>" name="lessor_identity" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">邮编</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lessor_postcode']; ?>" name="lessor_postcode" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">电话</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lessor_telephone']; ?>" name="lessor_telephone" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">房屋坐落地址</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lease_area']; ?>" name="lease_area" type="text" required
                                       class="form-control" placeholder="房屋坐落地址">

                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">详细地址</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" placeholder="详细地址" name="lease_address" id="lease_address" required rows="5"><?php echo $m['lease_address']; ?></textarea>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">租赁面积(m<sup>2</sup>)</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lease_measure']; ?>" name="lease_measure" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">月租金(元)</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lease_price']; ?>" name="lease_price" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">租赁开始日期</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lease_start_date']; ?>" name="lease_start_date" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">租赁结束日期</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lease_end_date']; ?>" name="lease_end_date" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">产权人或合法使用人</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['owner_name']; ?>" name="owner_name" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">产权人证件号</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['owner_identity']; ?>" name="owner_identity" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">受委托人</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lease_trustee']; ?>" name="lease_trustee" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">受委托人电话</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lease_trustee_phone']; ?>" name="lease_trustee_phone" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">受委托人证件号</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['lease_trustee_identity']; ?>" name="lease_trustee_identity" type="text"
                                       required class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">承租人姓名</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['renter_name']; ?>" name="renter_name" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">承租人证件号</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['renter_identity']; ?>" name="renter_identity" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">承租人邮编</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['renter_postcode']; ?>" name="renter_postcode" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">承租人电话</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['renter_telephone']; ?>" name="renter_telephone" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">受委托人</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['rent_trustee']; ?>" name="rent_trustee" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">受委托人电话</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['rent_trustee_phone']; ?>" name="rent_trustee_phone" type="text" required
                                       class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">受委托人证件号</label>
                            <div class="col-sm-10">
                                <input value="<?php echo $m['rent_trustee_identity']; ?>" name="rent_trustee_identity" type="text"
                                       required class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <!--<button class="btn btn-white" data-op="reset" type="button">重 置</button>-->
                                <!--&nbsp;-->
                                <!--&nbsp;-->
                                <button data-style="expand-left" class="btn btn-primary ladda-button" type="button"
                                        data-op="submit">确 定
                                </button>
                            </div>
                        </div>
                        <div>
                            <button class="btn btn-link" data-op="back" type="button">
                                <span class="fa fa-angle-left"></span>
                                返回
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    YForm.create('#form1', "<?php echo U('saveModel'); ?>", '<?php echo $m['id']; ?>');
</script>